package com.tongtong.stscommon.enumration;

/**
 * 状态码 enum
 */
public interface Status {
	int OK = 200;
	int OK_WITH_DATA = 201;

	// 空对象
	int ObjectIsNull = 100;
	int ObjectCanNotFound = 101;

	// 七牛云错误
	int UploadFileFailed = 300;
	int DeleteFileFailed = 301;
	int FileInvalidation = 302;

	// 身份验证
	int Unauthorized = 400;
	int AuthenticationError = 401;
	int AuthorityError = 402;

	// 用户注册
	int PhoneNumberIllegal = 410;
	int PhoneNumberRegistered = 411;
	int PhoneNumberIsNull = 412;

	int CaptchaError = 420;
	int CaptchaRepeatApply = 421;
	int CaptchaUnapplied = 422;
	int CaptchaApplyFailed = 423;

	int UsernameUsed = 430;


	// 资源请求失败
	int GetResourcesError = 501;
	int UpdateResourcesError = 502;
	int AddResourcesError = 503;
	int DeleteResourcesError = 504;
	int AccessResourcesError = 505;

	// 订单
	int OrderStateError = 510;
	int QuantityExceeded = 511;
	int ItemOrderedOrSoldOut = 512;

	// 审核
	int AuditedStatusError = 600;
	int AuditedResultError = 601;
}
